//
//  VideoModel.m
//  BlackCool
//
//  Created by cocoazxj@163.com on 15/4/29.
//  Copyright (c) 2015年 handcool. All rights reserved.
//

#import "VideoModel.h"

@implementation VideoModel
- (instancetype)initWithDict:(NSDictionary *)dict
{
    if(self == [super init])
    {
        self.ID = [dict[@"id"] intValue];
        self.image = dict[@"image"];
        self.length = [dict[@"length"] intValue];
        self.name = dict[@"name"];
        self.url =  dict[@"url"];
    }
    return self;
}

+ (instancetype)videoModelWithDict:(NSDictionary *)dict
{
    return [[VideoModel alloc] initWithDict:dict];
}
@end
